<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="keywords" content="" />
		<meta http-equiv="description" content="" />
		<title>コントロールパネル</title>

		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		<script src="assets/scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		
		<script type="text/javascript">
		$(function() {

			// メッセージのフェード
			$('.message').fadeIn("slow");

			// 戻るボタン押下
			$('#btn_back').click(function(){
				document.fm.mode.value = 'back';
				document.fm.submit();
			});
		});
		</script>
		<script type="text/javascript">
			function openYZ(){
				var mydiv = document.getElementById('mydiv');
				mydiv.style.display = 'block';
				window.location.href = 'price_book.php?mode=open';
			}
		</script>	
				
	</head>
	<body id="">

		<div id="container"><div class="wrapper">
			<div id="printContent">
				<div id="pheader">
					<div id="pheaderLeft">
				    	<h1 id="printPageTitle">御見積書</h1>
				    	<p class="printName">{{$consumer.company_name}}    {{if $consumer.category==1}}御中{{else}}様{{/if}}</p>
				    	
				    	<table class="headerTable">
				    		<tbody>
				    			<tr>
				    				<th align="right">納入場所：</th>
				    				<td>{{$forms.save_address}}</td>
				    			</tr>
				    			<tr>
				    				<th align="right">納入期日：</th>
				    				<td>{{$forms.save_date}}</td>
				    			</tr>
				    			<tr>
				    				<th align="right">適用期間：</th>
				    				<td>{{$forms.period_remark}}</td>
				    			</tr>
				    			<tr>
				    				<th align="right">支払条件：</th>
				    				<td>{{if $forms.payment_term==''}}末締翌末現金支払{{/if}}{{$forms.payment_term}}</td>
				    			</tr>
				    			<tr>
				    				<th align="right">見積有効期限：</th>
				    				<td>{{$forms.dateestimated}}</td>
				    			</tr>
				    			<tr>
				    				<th align="right">送料：</th>
				    				<td>{{$forms.shipping}} </td>
				    			</tr>
								<tr>
				    				<th></th>
				    				<td>消費税は含んでおりません</td>
				    			</tr>
				    		</tbody>
				    	</table>
					</div><!-- /#pheaderLeft-->

			    	<div id="pheaderRight">
				    	<p class="alignRight">
				    		年月日：{{$forms.m_date}}<br />
				    		見積番号：{{$price_no}}
				    	</p>
			    	
			    		<!-- <div style = "align:right"><img src="assets/images/staffadmin/pictorico.png"></img></div> -->
			    		<dl class="hLogo">
			    			<dt><img src="assets/images/staffadmin/pictorico.png" width="150" /></dt>
					    	<dd>株式会社ピクトリコ<br />〒130-0026 東京都墨田区両国2丁目10番14号 両国シティコア<br />T E L  03-5600-1640　F A X 03-5600-1645<br />
					    		作成者：{{$staff_name}}</dd>
			    		</dl>
			    	
				    	<table class="stampTable"  style="width:126px;height:63px">
				    		<tr>
				    			<td style="width:50%">
				    			{{if $forms.examiner>0}}
				    			<img src="assets/images/staffadmin/{{$forms.examiner}}.png"   onerror="this.src='assets/images/staffadmin/nostaff.png';this.onerror=null;"></img>
				    			{{/if}}
				    			</td>
				    			<td style="width:50%">&nbsp;</td>
				    		</tr>
				    	</table>
					</div>
			   </div>
			   
			  
			  	<form name="fm" action="" method="post">
			  			<table class="printTable">		
			  				<tr align="center">
			  					<th>NO.</th>
			  					<th>名称</th>
			  					<th>仕様</th>								
			  					<th>数量</th>
			  					<th>単位</th>	
			  					<th>参考価格</th>	
			  					<th>単価</th>	
			  					<th>金額</th>			
			  				</tr>
			  				{{ foreach from=$detail key=k item=v }}
			  				<tr align="center">
			  					<td class="numCell">{{$k+1}}</td>
			  					<td class="itemName">{{$v.shop_name}}</td>
			  					<td>{{$v.style}}</td>
			  					<td>{{$v.quantity}}</td>
			  					<td>{{$v.s_unit}}</td>
			  					<td>￥{{$v.refer_price}}</td>								
			  					<td>￥{{$v.cmoney}}</td>								
			  					<td>￥{{$v.money}}</td>					
			  				</tr>								
			  				{{ /foreach }}	
			  				
			  				{{section name=foo start=$num loop=21 step=1 }}
			  				<tr align="center">
			  					<td>&nbsp;</td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>
			  					<td></td>								
			  					<td></td>	
			  					<td></td>
			  											
			  				</tr>
			  				{{/section}}
			  			</table>
			  			<div class="noteArea">
			  				<dl>
			  					<dt>[備考]</dt>
			  					<dd>{{$forms.remark}}</dd>
			  				</dl>
			  			</div><!--/.noteArea-->
			  			
			  		</form>	
				<br/><br/>
			  </div>
			  <!-- <div id="mydiv" style="display: none;position: static;">$imag</div> -->
			  	
		</div></div>
		
	</body>

</html>